package com.pktechan.api.service;

import com.pktechan.api.base.BaseService;
import com.pktechan.api.entity.TradeOrderDetail;
import com.pktechan.api.vo.TradeOrderDetailVO;

import java.util.List;

public interface TradeOrderDetailService extends BaseService<TradeOrderDetail> {

    List<TradeOrderDetailVO> getTradeOrderDetailByOrderId(Integer tradeOrderId);

    /**
     * 根据订单ID查询
     * @param tradeOrderId
     * @return
     */
    TradeOrderDetail getRegisterOrderDetail(Integer tradeOrderId);

    /**
     * 查询订单积分运费详情
     * @param tradeOrderId
     * @return
     */
    TradeOrderDetailVO getOrderDetailById(Integer tradeOrderId);

    Integer getOrderVipRank(Integer tradeOrderId);
}
